<?php


namespace App\Http\Request;


use Illuminate\Http\Request;

class Login extends Request
{
    public function rules()
    {
        return [
            'account'=>'min:4|max:10',
            'password'=>'min:4|max:10'
        ];
    }

    public function messages()
    {
        return [
            'account.min'=>'账号长度不符',
            'account.max'=>'账号长度不符',
            'password.min'=>'密码长度不符',
            'password.max'=>'密码长度不符',
        ];
    }
}
